<!DOCTYPE html>
<style type="text/css">
    .col{
        background-color: #F9FAFB;
        /*border: 1px solid #ddd;*/
        padding: 2px 8px 2px 8px;
        border-radius: 2px;
    }
</style>
<ion-view hide-nav-bar="true">
    <ion-content >
        <div class="content no-header">
            <div style="width: 100%;border-bottom: 1px solid #EBEBEB;text-align: center;" ng-click="adCheckSelect()" ng-show="searchData != undefined && searchData.taskTitle != undefined">
                <span class="item" >
                    <!--<i class="icon ion-ios-plus-outline"></i>-->
                    <i class="icon ion-arrow-down-b"></i>
                    {{searchData.taskTitle}}
                </span>
            </div>
        </div>
        <ion-list>
            <div ng-show="taskItemList.length > 0 && taskItemList.length < 15 ">
                <div ng-repeat="data in taskItemList" class="item" style="height: 118px;padding: 0px;border: none"
                     ng-click="clickItem(data)" >
                    <div ng-show="data.busId != undefined && data.busId != ''">
                        <div class="row" style="padding: 0px 0px;">
                            <span class="col" style="font-size: 13px;">自编号 : {{data.vehicleNo}}</span>
                            <span class="col" style="font-size: 13px;">车牌号 : {{data.plateNo}}</span>
                        </div>

                        <div class="row" style="padding: 2px 0px;">
                            <span class="col" style="font-size: 13px;">线路 : {{data.lineNo}}</span>
                            <span class="col" style="font-size: 13px;">营运单位 : {{data.companyName}}</span>
                        </div>

                        <div class="row" style="padding: 2px 0px;">
                            <span class="col" style="font-size: 13px;">媒体类型 : {{data.mediaName}}</span>
                            <span class="col" style="font-size: 13px;">上刊单号 : {{data.billNo}}</span>
                        </div>

                        <div class="row" style="padding: 2px 0px;">
                            <span class="col" style="font-size: 13px;">广告内容 : {{data.publishContent}}</span>
                            <span class="col" style="font-size: 13px;" ng-style="{'color': data.status == '0' ? 'red' : 'green' }">
                                状态 : {{data.status | code : 'CHECK_TASK_ITEM_STATUS'}}
                            </span>
                        </div>

                        <div class="row" style="padding: 0px;">
                            <span class="col" style="font-size: 13px;">上刊时间 : {{data.publishTime}}</span>
                        </div>

                    </div>

                    <div ng-show="data.stopId != undefined && data.stopId != ''">
                        <div class="row" style="padding: 0px;">
                            <span class="col" style="font-size: 13px;">站点名称 : {{data.stopName}}</span>
                            <span class="col" style="font-size: 13px;">街道 : {{data.roadName}}</span>
                        </div>

                        <div class="row" style="padding: 2px 0px;">
                            <span class="col" style="font-size: 13px;">媒体类型 : {{data.mediaName}}</span>
                            <span class="col" style="font-size: 13px;">行向 : {{data.direction}}</span>
                        </div>

                        <div class="row" style="padding: 2px 0px;">
                            <span class="col" style="font-size: 13px;">上刊单号 : {{data.billNo}}</span>
                            <span class="col" style="font-size: 13px;" ng-style="{'color': data.status == '0' ? 'red' : 'green' }">
                                状态 : {{data.status | code : 'CHECK_TASK_ITEM_STATUS'}}
                            </span>
                        </div>

                        <div class="row" style="padding: 2px 0px;">
                            <span class="col" style="font-size: 13px;">广告内容 : {{data.publishContent}}</span>
                        </div>

                        <div class="row" style="padding:0px;">
                            <span class="col" style="font-size: 13px;">上刊时间 : {{data.publishTime}}</span>
                        </div>
                    </div>
                    <div style="height: 6px;background-color: #F5F5F5;">
                    </div>

                </div>
            </div>
            <div ng-show="taskItemList.length >= 15 ">
                <div ng-repeat="data in taskItems" class="item" style="height: 75px;padding: 5px;" ng-click="clickItem(data)">
                    <span style="font-size: 13px;">上刊单号 : {{data.billNo}}</span>
                    <span style="font-size: 13px;">广告内容 : {{data.publishContent}}</span>
                    <br/>
                    <span style="font-size: 13px;">上刊时间 : {{data.publishTime}}</span>
                    <br/>
                    <span style="font-size: 13px;">资源编号 : {{data.resourceCode}}</span>
                </div>
                <div>
                    <span class="item" style="text-align: center;height: 30px;padding: 3px;color: red;">{{vm.descText}}</span>
                </div>
                <ion-infinite-scroll ng-if="!vm.moredata" on-infinite="vm.loadMore()" distance="1%" ></ion-infinite-scroll>
            </div>
        </ion-list>
        <div ng-if="searchData == undefined || searchData.taskTitle == undefined || searchData.taskTitle == '' "  style="padding-top:10px;width: 100%;text-align: center;color: #555;"> <span>无数据</span></div>
    </ion-content>
    <div class="adCheckContainer"></div>
</ion-view>